package com.yuantong.xyerp.core.api.common;

/**
 * 常量
 */
public class Constant {

    private Constant() {}


    /**
     * 用户缓存过期时间
     * 60 * 60  一小时
     */
    public static final long USER_EXPIRE_TIME = 60 * 60 * 24;
    // public static final long USER_EXPIRE_TIME = 90;

    /**
     * 黑名单缓存过期时间应为 token 过期时间
     * 60 * 60  一小时
     */
    public static final long TOKE_EXPIRE_TIME = 60 * 60 * 24 * 7;

    /**
     * redis-key-前缀-user_cache:
     */
    public static final String PREFIX_USER_CACHE = "user_cache:";

    /**
     * redis-key-前缀-forbid_token_cache::
     */
    public static final String PREFIX_FORBID_TOKEN_CACHE = "forbid_token_cache:";

    /**
     * JWT-loginName:
     */
    public static final String LOGIN_NAME = "loginName";

    /**
     * JWT-currentTimeMillis:
     */
    public static final String CURRENT_TIME_MILLIS = "currentTimeMillis";

    /**
     * 默认密码 123456
     */
    public static final String DEFAULT_PWD = "12345678";

    /**
     * authCode
     */
    public static final String AUTH_CODE = "authCode";

    /**
     * dataRights
     * 0-全部数据；1-部门数据；2-个人数据
     */
    public static final String DataRight_Personal = "2";
    public static final String DataRight_Department = "1";

    /**
     * 为对应 dataRight 用户添加限定条件
     */
    public static final String Clause_Creator_Id = "creator_id";
    public static final String Clause_Creator_Ids = "creator_id{}";
    public static final String Clause_Sign_By = "sign_by";
    public static final String Clause_Sign_Bys = "sign_by{}";
    public static final String Clause_Operator_Id = "operator_id";
    public static final String Clause_Operator_Ids = "operator_id{}";
    public static final String Clause_Combine = "@combine";

    /**
     * status 1-启用 0-未启用
     */
    public static final String IS_USEING = "1";
    public static final String UN_USEING = "0";

    /**
     * header 请求头
     */
    public static final String Header_Authorization = "Authorization";
    public static final String Header_Access_Control_Expose_Headers = "Access-Control-Expose-Headers";

    /**
     * 品类
     */
    public static final String BIG_CATEGORY = "bigCategory";
    public static final String LEVEL_ONE = "level_one";
    public static final String LEVEL_TWO = "level_two";
    public static final String LEVEL_THREE = "level_three";





    //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>采购审核state>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    /**
     * 仓库管理员审批
     */
    public static final String state_warehouseExamine = "warehouseExamine";

    /**
     * 采购主管复审
     */
    public static final String state_managerReexamine = "managerReexamine";

    /**
     * 财务主管复审
     */
    public static final String state_financeReexamine = "financeReexamine";

    /**
     * 采购/销售内勤初审
     */
    public static final String state_officeExamine = "officeExamine";

    /**
     * 保存
     */
    public static final String state_save = "save";

    /**
     * 出纳审核（尾款）
     */
    public static final String state_cashierReexamine = "cashierReexamine";

    /**
     * 总裁审批
     */
    public static final String state_ceoExamine = "ceoExamine";

    /**
     * 采购/销售主管初审
     */
    public static final String state_managerExamine = "managerExamine";

    /**
     * 财务内勤初审
     */
    public static final String state_financeExamine = "financeExamine";

    /**
     * 初审驳回
     */
    public static final String state_reject = "reject";

    /**
     * 采购内勤复审
     */
    public static final String state_officeReexamine = "officeReexamine";

    /**
     * 完成
     */
    public static final String state_finish = "finish";

    /**
     * 出纳审核（预付款）
     */
    public static final String state_cashierExamine = "cashierExamine";

    //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>销售审核state>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

    /**
     * 销售主管复审
     */
    public static final String state_managerReexamline = "managerReexamline";


    /**
     * 出纳审核（结算）
     */
    public static final String state_cashierExamine3 = "cashierExamine3";



    /**
     * 销售副总审批
     */
    public static final String state_vicePresidentExamine = "vicePresidentExamine";

    /**
     * 出纳审核（配送）
     */
    public static final String state_cashierExammine2 = "cashierExammine2";

    /**
     * 出纳审核（自提）
     */
    public static final String state_cashierExammine1 = "cashierExammine1";




}
